$(function(){
    $("#searches").click(function(){
        var search_val = $.trim($("#search").val());
        if (search_val == '') {
            return false;
        }
        window.location.href = '/search?title=' + search_val;
    })
})